package com.luoqiu.cinema.mapper;

import com.luoqiu.cinema.common.BuyMovieParam;import com.luoqiu.cinema.entity.Ticket;import org.apache.ibatis.annotations.Param;

public interface TicketMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Ticket record);

    int insertSelective(Ticket record);

    Ticket selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Ticket record);

    int updateByPrimaryKey(Ticket record);

    void updateTotal(@Param("param") BuyMovieParam buyMovieParam);

    Integer loadAllLocaltion(@Param("movieId") Integer movieId, @Param("placeId") Integer placeId);

    Integer loadId(@Param("movieId") Integer mvId, @Param("placeId") Integer pid);

    void updateSurplus(@Param("id") Integer ticketId, @Param("num") Integer ticketNum);

    void delByMovieId(Integer id);

    void delByPlaceId(Integer id);

}
